#include <iostream>
//
// Created by Asus on 2025/6/1.
//
using namespace std;

class BasePage {
public:
    void header() {
        cout << "首页、公开课、登录、注册...（公共头部）" << endl;
    }

    void footer() {
        cout << "帮助中心、交流合作、站内地图...(公共底部)" << endl;
    }

    void left() {
        cout << "Java,Python,C++...(公共分类列表)" << endl;
    }
};

class Java : public BasePage {
public:
    void content() {
        cout << "JAVA学科视频" << endl;
    }
};

class Python : public BasePage {
public:
    void content() {
        cout << "Python学科视频" << endl;
    }
};

//C++页面
class CPP : public BasePage {
public:
    void content() {
        cout << "C++学科视频" << endl;
    }
};

int main(int argc, char *argv[]) {
    return 0;
}
